package com.licenta.fbApp.client;

import com.google.gwt.event.shared.GwtEvent;

public class FriendClickedEvent extends GwtEvent<FriendClickedEventHandler> {
  public static Type<FriendClickedEventHandler> TYPE = new Type<FriendClickedEventHandler>();

  /**
 * @uml.property  name="uid"
 */
private Long uid;
  /**
 * @uml.property  name="isUsing"
 */
private boolean isUsing;
  
  public FriendClickedEvent(Long uid, boolean isUsing) {
    this.uid = uid;
    this.isUsing = isUsing;
  }

  @Override
  public Type<FriendClickedEventHandler> getAssociatedType() {
    return TYPE;
  }

  @Override
  protected void dispatch(FriendClickedEventHandler handler) {
    handler.onFriendClicked(this);
  }
  
  /**
 * @return
 * @uml.property  name="uid"
 */
public Long getUid() {
    return uid;
  }
  
  /**
 * @return
 * @uml.property  name="isUsing"
 */
public boolean isUsing() {
    return isUsing;
  }

}
